package com.mini.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.mini.util.LongJsonDeserializer;
import com.mini.util.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.sql.Time;
import java.util.Date;
import java.util.List;

/**
 * 项目名称：traditional-business
 * 类 名 称：RequirementPlanSaveRes
 * 类 描 述：保存需求规划内容
 * 创建时间：2020/12/16 上午10:59
 * 创 建 人：zhanghuiying
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("保存需求规划内容")
public class RequirementPlanSaveReq {

    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @ApiModelProperty(value = "基础信息id")
    private Long baseId;
    @ApiModelProperty(value = "量子军团id")
    private Long quantumArmyGroupId;
    @ApiModelProperty(value = "名片需求量")
    private Integer cardCount;
    @ApiModelProperty(value = "截止时间")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    @ApiModelProperty(value = "是否接收余量 0-否 1-是")
    private Integer receivingResidue;
    @ApiModelProperty(value = "模式 0-全部 1-A模式 2-B模式")
    private Integer pattern;
    @ApiModelProperty(value = "规划日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date planDate;
    @ApiModelProperty(value = "表单列表")
    private List<RequirementPlanTableReq> requirementPlanTableReqList;
    @ApiModelProperty(value = "已删除的表id")
    private List<Long> tableIds;

}
